<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>분신물 확인</title>
<style type="text/css">
table{
	width :650px;
	border-collapse: collapse;
}
td{
	padding: 5px;
}
</style>
</head>
<body>
<h2>분신물 확인</h2>

<table id="content" border="1" align="center">
	<tr>
		<td width="65px">글번호</td>
		<td>제목</td>
		<td width="80px">탑승날짜</td>
		<td width="60">작성일</td>
		<td width="60">조회수</td>
	</tr>
	<c:forEach items="${requestScope.lfto.list }" var="lf">
		<tr>
			<td>${lf.no }</td>
			<td>
				<c:forEach begin="1" end="${lf.relevel }" step="1">
					&nbsp;&nbsp;
				</c:forEach>
				<c:if test="${lf.relevel != 0 }">
					→
				</c:if>
				<a href="/kosta_project_final_taxi/getContent2.do?no=${lf.no }&page=${requestScope.lfto.pagingTO.currentPage}">
					${lf.title }
				</a>
			</td>
			<td>${lf.rideDate }</td>
			<td>${lf.writedate }</td>
			<td>${lf.viewcount }</td>
		</tr>	
	</c:forEach>
	
</table>
<p>
<table align="center">
	<tr >
		<td>		
		<c:choose>
			<c:when test="${requestScope.lfto.pagingTO.previousPageGroup }">
				<a href="/kosta_project_final_taxi/list2.do?page=${requestScope.lfto.pagingTO.startPageOfPageGroup -1 }">
				◀
				</a>
			</c:when>
			<c:otherwise>
				◀
			</c:otherwise>
		</c:choose>
		<c:forEach begin="${requestScope.lfto.pagingTO.startPageOfPageGroup }"
							   end="${requestScope.lfto.pagingTO.endPageOfPageGroup }"
							   step="1"
							   var ="i">
			<c:choose>
				<c:when test="${i == requestScope.lfto.pagingTO.currentPage }">
					${i }
				</c:when>
				<c:otherwise>
					<a href="/kosta_project_final_taxi/list2.do?page=${i }">${i }</a>
				</c:otherwise>
			</c:choose>			
		</c:forEach>
		<c:choose>
			<c:when test="${requestScope.lfto.pagingTO.nextPageGroup }">
				<a href="/kosta_project_final_taxi/list2.do?page=${requestScope.lfto.pagingTO.endPageOfPageGroup + 1 }">
					▶
				</a>
			</c:when>
			<c:otherwise>
				▶
			</c:otherwise>
		</c:choose>
		
		<td>
	</tr>
</table>

<a href="/kosta_project_final_taxi/index.jsp" style="color: white;text-decoration: none">메인페이지</a>&nbsp;&nbsp;
<br>

</body>
</html>















